import request from '@/http/request'
// CDK列表查询
// export const API_URL_VIRTUAGOODS_CDK = '/api/virtualAward/cdk'
export const $apiVirtualAwardCdk =  (params) => {
    return request.request({ url: '/api/virtualAward/cdk', method: 'GET', params: params }, true, true, false)
  }

export function $getSupplierList(state:any){
    return request.request({
      url: '/api/awardVirtual/supplier'+'?pageNumber=1&pageSize=999&state='+state,
      method: 'get',
    })
  }  

  /* 获取请求参数 */
export function $getUploadFormParams (file, bizType) {  
    return request.request({
      url: '/api/ossFiles/form',
      method: 'post',
      data: { bizType : bizType, sourceFileName: file.name, sourceFileSize: file.size }
    })
  }


  // CDK列表导入
// export const API_URL_VIRTUALAWARD_CKD = '/api/virtualAward/cdk/importCdk'
export const $apiVirtualAwardCdkImportCdk = ( data) => {
    return request.request({ url: '/api/virtualAward/cdk/importCdk', method: 'POST', data: data }, true, true, false)
  }